package com.bdqn.t296.noso.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 角色实体类
 */
@Data
@TableName("sys_role")
public class Role implements Serializable {
    @TableId("roleid")
    private Integer roleid;
    @TableField("rolename")
    private String rolename;
    @TableField("roledesc")
    private String roledesc;
    @TableField("available")
    private Integer available;
    private List<User> users;
    private Set<Menu> menus = new HashSet<Menu>(0);

    public Role(int roleid, String rolename, String roledesc, Integer available) {
        this.roleid = roleid;
        this.rolename = rolename;
        this.roledesc = roledesc;
        this.available = available;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRoledesc() {
        return roledesc;
    }

    public void setRoledesc(String roledesc) {
        this.roledesc = roledesc;
    }

    public Integer getAvailable() {
        return available;
    }

    public void setAvailable(Integer available) {
        this.available = available;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public Set<Menu> getMenus() {
        return menus;
    }

    public void setMenus(Set<Menu> menus) {
        this.menus = menus;
    }
}
